home *** CD-ROM | disk | FTP | other *** search
- Path: news.microsoft.com!news
- From: a-cnadc@microsoft.com (Dann Corbit)
- Newsgroups: comp.lang.c
- Subject: Re: Function to retrieve full path name of running process?
- Date: 26 Jan 1996 00:44:47 GMT
- Organization: Microsoft Corporation
- Message-ID: <4e985v$c4c@news.microsoft.com>
- References: <4e330s$o25@news.fmso.navy.mil>
- NNTP-Posting-Host: 157.57.171.202
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <4e330s$o25@news.fmso.navy.mil>, Carol_Walker@fmso.navy.mil says...
- >
- >Is there a function that a process running on a Unix system can call
- >to determine the full path name of its object file? argv[0] doesn't
- >contain the full path, only the command used to execute it.
- No, there is not. The FAQ explains why. There may be some function
- available to your particular system to resolve the problem, but there
- is no such solution in ANSI C.
- --
- The opinions expressed in this message are my own personal views
- and do not reflect the official views of Microsoft Corporation.
-
-